package unionfind

type UnionFind interface {
	IsConnected(p, q int) bool
	UnionElements(p, q int)

	Size() int

	Find(p int) int
	ComponentSize(p int) int
	Components() int
}
